package com.erp.quertz.emailQuertz;

import com.erp.erp_servers.Dictionary.IDictionary2Service;
import com.erp.erp_servers.Email.EmailService;
import com.erp.erp_servers.Email.Impl.EmailServiceImpl;
import com.erp.erp_servers.Ftp.IFtpService;

public class down {
    private volatile static down d = null;
    // 私有化构造方法
    private down() {}
    public synchronized void down(EmailService email, IDictionary2Service dictionary2Service, IFtpService iFtpService){
        try {
            email.upLoadAdjunctMore(dictionary2Service,iFtpService);
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("下载邮件附件中断");
        }
    }
    public static down getdown() {
        if (d == null) {
            synchronized (down.class) {
                if (d == null) {
                    d = new down();
                }
            }
        }
        return d;
    }
}
